package com.ljx.hzit.config;

import org.omg.PortableInterceptor.RequestInfo;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnection;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
import org.springframework.data.redis.connection.lettuce.LettuceConnectionFactory;
import org.springframework.data.redis.core.StringRedisTemplate;


@Configuration
public class MyConfig {

	@Bean
	public RedisConnectionFactory redisConnectionFactory(){
		LettuceConnectionFactory lettuceConnectionFactory = new LettuceConnectionFactory("192.168.56.10",6379);
		return lettuceConnectionFactory;
	}


}
